package constructor.in.inheritance;

public class Employee extends Person{
	int x=20;
	
	public Employee() {
	super();
	System.out.println("employee default"); //5
	}
	
	public Employee(int x) {
		this();
		System.out.println("emplyee constructor call");//6
		
	}
	
	{
		System.out.println("employee init"); //4
		
		
	}
	/**
	 *  parent initi  -------
	 *  Parent constructor 
	 *  Child init  --- 
	 *  child constructor 
	 *  
	 * @param args
	 */
/*	
	public void walk() {
		System.out.println("emplee walk.");
	}
	
	public void talk(){
		super.walk();
		System.out.println(super.x);
		System.out.println("talk");
	}
*/
	public static void main(String[] args) {
		Person employee=new Employee(3);
		
		System.out.println(employee.x);
		//employee.talk();
	}

}
